﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FarseerGames.FarseerPhysics;
using Microsoft.Xna.Framework;
using XNA_2DFramwork;

namespace ArtificialIntelligence.Racing
{
    public class RandomClass
    {
        public static void Randomize(List<VisualObject> L, Game G, PhysicsSimulator PhysicsSimulator)
        {

            VisualObject Obj;
            Random R = new Random();
            int x;
            int y;
            for (int i = 0; i < R.Next(40, 60); i++)
            {

                x = R.Next(250, 750);
                y = R.Next(-100000, -1000);
                Vector2 Pos = new Vector2(x, y);
                Obj = new Money(G, Pos, "dollar", PhysicsSimulator);
                L.Add(Obj);
            }
            for (int i = 0; i < R.Next(40, 60); i++)
            {
                x = R.Next(250, 750);
                y = R.Next(-100000, -1000);
                Vector2 Pos = new Vector2(x, y);
                Obj = new Nitrous(G, Pos, "Nitrous", PhysicsSimulator);
                L.Add(Obj);
            }

            for (int i = 0; i < R.Next(40, 60); i++)
            {
                x = R.Next(250, 750);
                y = R.Next(-100000, -1000);
                Vector2 Pos = new Vector2(x, y);
                Obj = new Wheel(G, Pos, "Wheel1", PhysicsSimulator);
                L.Add(Obj);

            }
            for (int i = 0; i < R.Next(40, 60); i++)
            {
                x = R.Next(250, 750);
                y = R.Next(-100000, -1000);
                Vector2 Pos = new Vector2(x, y);
                Obj = new Cone(G, Pos, "Cone1",PhysicsSimulator);
                L.Add(Obj);
            }
        }
    }


}
